package com.java.grammer.statics.exer1;

/**
 * 静态的使用
 */
public class Account {
    private int id;
    private String passd = "000000";
    private double balance;
    private static double liLv;
    private static double minCount = 1.0;
    private static int total = 1;             //注册的客户总人数  视频中说用于自动生成id使用的

    public Account() {
        id = total++;
        // liLv=0.03;
    }

    public Account(String passd, double balance) {
        id = total++;
        this.balance = balance;
        this.passd = passd;
    }

    public String getPassd() {
        return passd;
    }

    public void setPassd(String passd) {
        this.passd = passd;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public int getId() {
        return id;
    }

    public static double getLiLv() {
        return liLv;
    }

    public static double getMinCount() {
        return minCount;
    }

    public int getTotal() {
        return total;
    }

    public void print() {
        System.out.println(id + "  " + passd + "  " + getId());
        //return false;
    }
}
